package com.example.shopping_web_back;

import com.github.pagehelper.PageInterceptor;
import org.apache.ibatis.plugin.Interceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.context.annotation.Bean;

@SpringBootApplication
public class ShoppingWebBackApplication {
	public static void main(String[] args) {
		SpringApplication.run(ShoppingWebBackApplication.class, args);
	}

	@Bean
	public Interceptor[] plugins() {
		return new Interceptor[]{new PageInterceptor()};
	}
}
